﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YbService.Entity.Dto;

namespace HzybService.BaseOutData
{
    public class ChuFangMxsc : HzybOutData
    {
        public string JiuZhenLsh { set; get; }
        public string ChuFangHao { set; get; }
        public string ChuFangLsh { set; get; }
        public decimal JinE { set; get; }
        public decimal ZiLiJe { set; get; }
        public decimal ZiFeiJe { set; get; }
        public string ShouFeiLb { set; get; }
        public string ShouFeiXmdj { set; get; }
        public string QuanEZfbz { set; get; }
        public decimal ZiLiBl { set; get; }
        public decimal XianJia { set; get; }
        public string BeiZhu { set; get; }
        public decimal ShangBaoZerfyje { set; get; }

        public ChuFangMxsc(HzybReturn result) : base(result)
        {
            if (result.YB_RESULT < 0) return;
            int p = 0;
            JiuZhenLsh = AnalyseSingleOutData(0)[p++].Trim();
            ChuFangHao = AnalyseSingleOutData(0)[p++].Trim();
            ChuFangLsh = AnalyseSingleOutData(0)[p++].Trim();
            JinE = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ZiLiJe = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ZiFeiJe = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            ShouFeiLb = AnalyseSingleOutData(0)[p++].Trim();
            ShouFeiXmdj = AnalyseSingleOutData(0)[p++].Trim();
            QuanEZfbz = AnalyseSingleOutData(0)[p++].Trim();
            ZiLiBl = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            XianJia = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
            BeiZhu = AnalyseSingleOutData(0)[p++].Trim();
            ShangBaoZerfyje = HzybConstants.StrToDecimal(AnalyseSingleOutData(0)[p++].Trim());
        }
    }
}